import http from '@http/http'
function severice () {
  let myseverice = {}
  // 通过sn查询辅导员个人信息
  myseverice._findPersonalInfoBySn = () => {
    return http.GET(`./api/instructor/findBySn`)
  }
  // 添加辅导员
  myseverice._addInstructor = (data) => {
    return http.POST(`./api/instructor/addInstructor`, data)
  }
  // 删除辅导员
  myseverice._deleteInstructor = (data) => {
    return http.POST(`./api/instructor/deleteInstructor`, data)
  }
  // 通过姓名或工号模糊匹配辅导员信息
  myseverice._fuzzyQueryUser = (data) => {
    return http.POST(`./api/instructor/fuzzyQueryUser`, data)
  }
  // 通过组织机构id获取辅导员
  myseverice._getInstructorById = (organizationId) => {
    return http.GET(`./api/instructor/getInstructor/${organizationId}`)
  }
  // 根据学号查询学生学籍异动情况
  myseverice._queryXJYDList = (data) => {
    return http.POST(`./api/instructor/queryXJYDList`, data)
  }
  return myseverice
}
export default severice
